package model;

public class Zoom {
	
	private final double INITIAL_ZOOM_PERCENTAGE = 1;
	
	private double zoomPercentage;
	
	public Zoom() {
		zoomPercentage = INITIAL_ZOOM_PERCENTAGE;
	}
	
	public double getZoomPercentage() {
		return zoomPercentage;
	}
	
	public void setZoomPercentage(double zoomPercentage) {
		if(zoomPercentage > 0.5) {
			this.zoomPercentage = zoomPercentage;
		}
	}
	
	public void updateZoomPercentage(double zoomPercentage) {
		if((this.zoomPercentage + zoomPercentage) > 0.5) {
			this.zoomPercentage += zoomPercentage;
		}
	}
	
	public void reset() {
		zoomPercentage = INITIAL_ZOOM_PERCENTAGE;
	}
	
}